import request from '@/utils/request';

// 查询其他计量详情列表(站点)
export function listBaSettleDeductDetail (query) {
  return request({
    url: '/cm/baSettleDeductDetail/list',
    method: 'get',
    params: query
  });
}
// 查询其他计量详情列表（标段）
export function listBaSettleDeductDetailByBd (query) {
  return request({
    url: '/cm/baSettleDeductDetail/bdlist',
    method: 'get',
    params: query
  });
}

// 查询其他计量详情详细
export function getBaSettleDeductDetail (deductDetailId) {
  return request({
    url: '/cm/baSettleDeductDetail/' + deductDetailId,
    method: 'get'
  });
}

// 新增其他计量详情
export function addBaSettleDeductDetail (data) {
  return request({
    url: '/cm/baSettleDeductDetail',
    method: 'post',
    data: data
  });
}

// 修改其他计量详情
export function updateBaSettleDeductDetail (data) {
  return request({
    url: '/cm/baSettleDeductDetail',
    method: 'put',
    data: data
  });
}

// 删除其他计量详情
export function delBaSettleDeductDetail (deductDetailId) {
  return request({
    url: '/cm/baSettleDeductDetail/' + deductDetailId,
    method: 'delete'
  });
}
